﻿using UnityEngine;
using System.Collections;

public enum ChannelAndroidDataType{
	GdtAppId,
	GdtBannerKey,
	GdtInsertKey,
	GdtIncentInsertKey,
	GdtNativeKey,
	GdtSplashKey,
	GdtIncentSplashKey,

	MeizuAppId,
	MeizuAppKey,
	YumiId,

	M4399Key,
	AppName,

	TjAppKey,
	AwakeTime,

	OppoAppId,
	OppoBannerKey,
	OppoInsertKey,
	OppoAppKey,
	OppoAppSecret,

	LenovoBannerKey,
	LenovoInsertKey,
	LenovoIncentVideoKey,

	VivoAppId,
	VivoCpId,
	VivoAppKey,

	IapPayAppId,
	IapPayWaresId,
	IapPayPrivateKey,
	IapPayPublicKey,
}

public enum ChannelIOSDataType{
	AppStoreId,
}

public enum ChannelBaseDataType{
	UMENG_APPKEY,
	TalkingDataKey,
	ChannelId,
	ApplovinKey,
	VungleKey,
	WeixinKey,
	WeixinSecret,
	QqKey,
	QqSecret,
	SinaKey,
	SinaSecret,
	SharePath,
}

public class DataType{
	public static string GetDataTypeName(string key){
		
		string typeName = null;

		if(key == ChannelBaseDataType.ChannelId.ToString()){
			typeName = "渠道标记";
		}else if(key == ChannelBaseDataType.UMENG_APPKEY.ToString()){
			typeName = "友盟Key";
		}else if(key == ChannelBaseDataType.TalkingDataKey.ToString()){
			typeName = "TalkingData统计Key";
		}else if(key == ChannelBaseDataType.ApplovinKey.ToString()){
			typeName = "Applovin广告Key";
		}else if(key == ChannelBaseDataType.VungleKey.ToString()){
			typeName = "Vungle广告Key";
		}else if(key == ChannelBaseDataType.WeixinKey.ToString()){
			typeName = "微信分享Key";
		}else if(key == ChannelBaseDataType.WeixinSecret.ToString()){
			typeName = "微信分享Secret";
		}else if(key == ChannelBaseDataType.QqKey.ToString()){
			typeName = "QQ分享Key";
		}else if(key == ChannelBaseDataType.QqSecret.ToString()){
			typeName = "QQ分享Secret";
		}else if(key == ChannelBaseDataType.SinaKey.ToString()){
			typeName = "微博分享Key";
		}else if(key == ChannelBaseDataType.SinaSecret.ToString()){
			typeName = "微博分享Secret";
		}else if(key == ChannelBaseDataType.SharePath.ToString()){
			typeName = "分享地址";
		}else if(key == ChannelAndroidDataType.GdtAppId.ToString()){
			typeName = "广点通广告ID";
		}else if(key == ChannelAndroidDataType.GdtBannerKey.ToString()){
			typeName = "广点通BannerKey";
		}else if(key == ChannelAndroidDataType.GdtInsertKey.ToString()){
			typeName = "广点通插屏Key";
		}else if(key == ChannelAndroidDataType.GdtIncentInsertKey.ToString()){
			typeName = "广点通激励插屏Key";
		}else if(key == ChannelAndroidDataType.GdtNativeKey.ToString()){
			typeName = "广点通原生Key";
		}else if(key == ChannelAndroidDataType.GdtSplashKey.ToString()){
			typeName = "广点通开屏Key";
		}else if(key == ChannelAndroidDataType.GdtIncentSplashKey.ToString()){
			typeName = "广点通激励开屏Key";
		}else if(key == ChannelIOSDataType.AppStoreId.ToString()){
			typeName = "苹果AppID";
		}


		else if(key == ChannelAndroidDataType.MeizuAppId.ToString()){
			typeName = "魅族ID";
		}else if(key == ChannelAndroidDataType.MeizuAppKey.ToString()){
			typeName = "魅族Key";
		}else if(key == ChannelAndroidDataType.YumiId.ToString()){
			typeName = "玉米广告Key";
		}else if(key == ChannelAndroidDataType.M4399Key.ToString()){
			typeName = "4399支付Key";
		}else if(key == ChannelAndroidDataType.AppName.ToString()){
			typeName = "游戏名";
		}else if(key == ChannelAndroidDataType.TjAppKey.ToString()){
			typeName = "屏蔽地区Key";
		}else if(key == ChannelAndroidDataType.AwakeTime.ToString()){
			typeName = "唤醒广告时间";
		}else if(key == ChannelAndroidDataType.OppoAppId.ToString()){
			typeName = "Oppo广告ID";
		}else if(key == ChannelAndroidDataType.OppoBannerKey.ToString()){
			typeName = "Oppo横幅ID";
		}else if(key == ChannelAndroidDataType.OppoInsertKey.ToString()){
			typeName = "Oppo插屏ID";
		}else if(key == ChannelAndroidDataType.OppoAppKey.ToString()){
			typeName = "Oppo支付Key";
		}else if(key == ChannelAndroidDataType.OppoAppSecret.ToString()){
			typeName = "Oppo支付Secret";
		}else if(key == ChannelAndroidDataType.LenovoBannerKey.ToString()){
			typeName = "联想横幅Key";
		}else if(key == ChannelAndroidDataType.LenovoInsertKey.ToString()){
			typeName = "联想插屏Key";
		}else if(key == ChannelAndroidDataType.LenovoIncentVideoKey.ToString()){
			typeName = "联想激励视频Key";
		}else if(key == ChannelAndroidDataType.VivoAppId.ToString()){
			typeName = "Vivo应用ID";
		}else if(key == ChannelAndroidDataType.VivoCpId.ToString()){
			typeName = "Vivo商户ID";
		}else if(key == ChannelAndroidDataType.VivoAppKey.ToString()){
			typeName = "Vivo秘钥Key";
		}else if(key == ChannelAndroidDataType.IapPayAppId.ToString()){
			typeName = "爱贝支付应用编号";
		}else if(key == ChannelAndroidDataType.IapPayWaresId.ToString()){
			typeName = "爱贝支付商品编号";
		}else if(key == ChannelAndroidDataType.IapPayPrivateKey.ToString()){
			typeName = "爱贝支付私钥";
		}else if(key == ChannelAndroidDataType.IapPayPublicKey.ToString()){
			typeName = "爱贝支付公钥";
		}

		else{
			typeName = key;
			Debug.LogError(string.Format("没有设置 {0} 的中文名，在这里设置",key));
		}
		return typeName;
	}
}






public enum ChannelBaseInfoType{
	ChannelId,
	ChannelCN,
	Platform,
	ProductName,
	BundleId,
	BundleVersion,
	ShortBundleVersion,
	BundleVersionCode,
	Icon,
	Splash,
	DefineSymbol,
	AndroidLib,
	MetaDataX
}


public class InfoType{
	public static string GetInfoTypeName(string key){
		string typeName = null;
		if(key == ChannelBaseInfoType.ChannelId.ToString()){
			typeName = "渠道标记";
		}else if(key == ChannelBaseInfoType.ChannelCN.ToString()){
			typeName = "渠道名";
		}else if(key == ChannelBaseInfoType.Platform.ToString()){
			typeName = "平台";
		}else if(key == ChannelBaseInfoType.ProductName.ToString()){
			typeName = "产品名";
		}else if(key == ChannelBaseInfoType.BundleId.ToString()){
			typeName = "包名";
		}else if(key == ChannelBaseInfoType.BundleVersion.ToString()){
			typeName = "版本号";
		}else if(key == ChannelBaseInfoType.ShortBundleVersion.ToString()){
			typeName = "短版本号";
		}else if(key == ChannelBaseInfoType.BundleVersionCode.ToString()){
			typeName = "版本数";
		}else if(key == ChannelBaseInfoType.Icon.ToString()){
			typeName = "Icon图标";
		}else if(key == ChannelBaseInfoType.Splash.ToString()){
			typeName = "闪屏图片";
		}else if(key == ChannelBaseInfoType.DefineSymbol.ToString()){
			typeName = "宏定义";
		}else if(key == ChannelBaseInfoType.AndroidLib.ToString()){
			typeName = "SDK路径";
		}else if(key == ChannelBaseInfoType.MetaDataX.ToString()){
			typeName = "MetaData参数";
		}

		else{
			typeName = key;
			Debug.LogError(string.Format("没有设置 {0} 的中文名，在这里设置",key));
		}
		return typeName;
	}
}


